
package math


import "jvmgo/ch05/instructions/base"
import "jvmgo/ch05/rtda"

type IXOR struct{base.NoOperandsInstruction}

func (self *IXOR)Execute(frame *rtda.Frame){
	stack := frame.OperandStack();
	v2 := stack.PopInt()
	v1 := stack.PopInt()
	result := v1^v2
	stack.PushInt(result)
}

type LXOR struct{base.NoOperandsInstruction}

func (self *LXOR)Execute(frame *rtda.Frame){
	stack := frame.OperandStack()
	v2 := stack.PopLong()
	v1 := stack.PopLong()
	result := v1 ^ v2
	stack.PushLong(result)
}